<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>登录</title>
</head>
<style>

.loginBtn{float:left;width:110px;height:36px;line-height:36px;background:#56a1e4;color:#fff;text-align:center;font-size:14px;font-weight:bold;cursor:pointer}
.loginBtn-hover{background:#4891dd}
.regBtn{float:right;width:108px;height:34px;line-height:34px;border:1px solid #cdcdcd;background:#fff;color:#000;text-align:center;font-size:14px;font-weight:bold;cursor:pointer}
.regBtn-hover{background:#f6f6f6}
.right{width: 250px;margin: 0 auto;padding-top: 100px;}
.goin1{padding-bottom: 10px;padding-top: 10px;padding-left: 155px;}

</style>
<body>
<div class="container-fluid">
<div class="right">
				<div id="log-form" class="rightmid">
					<div class="log-input-container">
						<div class="clear" style="font-size:0px;"></div>
						<div class="log-line log-line-hover">
							<div class="log-txt log-txt-hover">用户帐号：&nbsp;&nbsp;
							<input id="log-cacct" type="text" maxlength="20" class="log-input input2 input1" width="150px">
							</div>
							<div class="logIco logIcoCacct">&nbsp;</div>
						</div>
						<div class="log-line">
							<div id="passwordLabel" class="log-txt">用户密码：&nbsp;&nbsp;
							<input id="log-pwd" type="password" maxlength="20" class="log-input input2" width="150px">
							</div>
						</div>
					</div>
						<div class="goin1"><a href="javascript:;" onclick="openPassword();">&nbsp;&nbsp;&nbsp;&nbsp;忘记密码？</a></div>
					</div>
					<div id="error" class="worn"></div>
					<div class="btns">
						<div id="login-button" class="loginBtn">登&nbsp;&nbsp;录</div>
						<div id="reg-button" class="regBtn">注&nbsp;&nbsp;册</div>
						<div class="clear"></div>
					</div>
				</div>
				<div class="rightbot"></div>
			</div>
<div class="footer">
	<span></span>
</div>
<script type="text/javascript" src="js/lib/biz.jquery.js"></script>
<script type="text/javascript" src="js/i18n/i18n_zh.js"></script>
<script type="text/javascript" src="js/lib/biz.js"></script>

<script type="text/javascript">

$(function(){
         //登录异步请求	
		$("#login-button").click(function(){
			//用户名
			var username = $("#log-cacct").attr("value");
			//用户密码
			var userpassword = $("#log-pwd").attr("value");
			
			$.ajax({
				url: "login/iflogin",
				type:"POST",
				data:{"username":username,"userpassword":userpassword},
				cache:false,
				async:false,
				success: function(data, textStatus, jqXHR){
                          if(data[0]){
					      window.location.href="login/goProList"; 
                          }else{alert("用户名或密码错误！")};

				},
			});
		});
});


</script>
</body>
</html>
